<?php
// +----------------------------------------------------------------------
// | ThinkCMF [ WE CAN DO IT MORE SIMPLE ]
// +----------------------------------------------------------------------
// | Copyright (c) 2013-2018 http://www.thinkcmf.com All rights reserved.
// +----------------------------------------------------------------------
// | Licensed ( http://www.apache.org/licenses/LICENSE-2.0 )
// +----------------------------------------------------------------------
// | Author: guosheng < 449134904@qq.com>
// +----------------------------------------------------------------------
namespace plugins\crawler\validate;

use think\Validate;

class CrawlerRuleValidate extends Validate
{
    protected $rule = [
        'rulename'         => 'require',
        'listpath'         => 'require',
        'pagepath'         => 'require',
        'category_id'      => 'require',
        'dictionary_id'    => 'require',
    ];

    protected $message = [
        'rulename.require'            => '规则名不能为空',
        'listpath.require'            => '列表采集规则不能为空',
        'pagepath.require'            => '内容采集规则不能为空',
        'category_id.require'         => '文章分类不正确',
        'dictionary_id.require'       => '核心词不能为空',
    ];

}